home *** CD-ROM | disk | FTP | other *** search
/ Family Forum 255 / SOMC Family Forum 255.iso / somc / SNEAK.dir / 00001_Script_1 next >
Text File  |  1998-09-11  |  8KB  |  252 lines

  1.  
  2. on startMovie
  3.   --  
  4.   global whichsneak
  5.   set whichsneak to "FAMILY"  
  6.   
  7.   --* This declares the variables for the finger cursor. *
  8.   global snFINGER, snFINGERMASK
  9.   set snFINGER to the memberNum of member "Finger1"
  10.   set snFINGERMASK to the memberNum of member "Finger2"
  11.   
  12.   glowClear()
  13.   
  14. end
  15.  
  16.  
  17. on showpuppets TRUEFALSE
  18.   repeat with x = 2 to 6
  19.     set the visible of sprite x to TRUEFALSE
  20.   end repeat
  21. end
  22.  
  23.  
  24.  
  25. on puppetsneaks sneakONOFF
  26.   repeat with x = 2 to 6
  27.     puppetSprite x,sneakONOFF
  28.   end repeat 
  29.   repeat with x = 52 to 56
  30.     puppetSprite x,sneakONOFF
  31.   end repeat 
  32. end
  33.  
  34.  
  35.  
  36. on sneakswap WHICHSNEAK
  37.   global FAMG,GAMEG,KIDSG,MACG,PRODG,EDUG
  38.   
  39.   puppetsneaks (FALSE)
  40.   
  41.   case WHICHSNEAK of
  42.     "EDU":
  43.       set the memberNum of sprite 2 to the memberNum of member "Snk FAM"
  44.       set FAMG to 52
  45.       set the memberNum of sprite 3 to the memberNum of member "Snk GAME"
  46.       set GAMEG to 53
  47.       set the memberNum of sprite 4 to the memberNum of member "Snk KIDS"
  48.       set KIDSG to 54
  49.       set the memberNum of sprite 5 to the memberNum of member "Snk MAC"
  50.       set MACG to 55
  51.       set the memberNum of sprite 6 to the memberNum of member "Snk PROD"
  52.       set PRODG to 56
  53.       
  54.       set the memberNum of sprite 52 to the memberNum of member "Snk FAMG"
  55.       set the memberNum of sprite 53 to the memberNum of member "Snk GAMEG"
  56.       set the memberNum of sprite 54 to the memberNum of member "Snk KIDSG"
  57.       set the memberNum of sprite 55 to the memberNum of member "Snk MACG"
  58.       set the memberNum of sprite 56 to the memberNum of member "Snk PRODG"
  59.       
  60.     "FAMILY":
  61.       set the memberNum of sprite 2 to the memberNum of member "Snk EDU"
  62.       set eduG to 52
  63.       set the memberNum of sprite 3 to the memberNum of member "Snk GAME"
  64.       set GAMEG to 53
  65.       set the memberNum of sprite 4 to the memberNum of member "Snk KIDS"
  66.       set KIDSG to 54
  67.       set the memberNum of sprite 5 to the memberNum of member "Snk MAC"
  68.       set MACG to 55
  69.       set the memberNum of sprite 6 to the memberNum of member "Snk PROD" 
  70.       set PRODG to 56
  71.       
  72.       set the memberNum of sprite 52 to the memberNum of member "Snk EDUG"
  73.       set the memberNum of sprite 53 to the memberNum of member "Snk GAMEG"
  74.       set the memberNum of sprite 54 to the memberNum of member "Snk KIDSG"
  75.       set the memberNum of sprite 55 to the memberNum of member "Snk MACG"
  76.       set the memberNum of sprite 56 to the memberNum of member "Snk PRODG"
  77.       
  78.     "GAME":
  79.       set the memberNum of sprite 2 to the memberNum of member "Snk EDU"
  80.       set EDUG to 52
  81.       set the memberNum of sprite 3 to the memberNum of member "Snk FAM"
  82.       set FAMG to 53
  83.       set the memberNum of sprite 4 to the memberNum of member "Snk KIDS"
  84.       set KIDSG to 54
  85.       set the memberNum of sprite 5 to the memberNum of member "Snk MAC"
  86.       set MACG to 55
  87.       set the memberNum of sprite 6 to the memberNum of member "Snk PROD" 
  88.       set PRODG to 56
  89.       
  90.       set the memberNum of sprite 52 to the memberNum of member "Snk eduG"
  91.       set the memberNum of sprite 53 to the memberNum of member "Snk FAMG"
  92.       set the memberNum of sprite 54 to the memberNum of member "Snk KIDSG"
  93.       set the memberNum of sprite 55 to the memberNum of member "Snk MACG"
  94.       set the memberNum of sprite 56 to the memberNum of member "Snk PRODG"
  95.       
  96.     "KIDS":
  97.       set the memberNum of sprite 2 to the memberNum of member "Snk EDU"
  98.       set EDUG to 52
  99.       set the memberNum of sprite 3 to the memberNum of member "Snk FAM"
  100.       set FAMG to 53
  101.       set the memberNum of sprite 4 to the memberNum of member "Snk GAME"
  102.       set GAMEG to 54
  103.       set the memberNum of sprite 5 to the memberNum of member "Snk MAC"
  104.       set MACG to 55
  105.       set the memberNum of sprite 6 to the memberNum of member "Snk PROD"  
  106.       set PRODG to 56
  107.       set the memberNum of sprite 52 to the memberNum of member "Snk EDUG"
  108.       set the memberNum of sprite 53 to the memberNum of member "Snk FAMG"
  109.       set the memberNum of sprite 54 to the memberNum of member "Snk GAMEG"
  110.       set the memberNum of sprite 55 to the memberNum of member "Snk MACG"
  111.       set the memberNum of sprite 56 to the memberNum of member "Snk PRODG"
  112.       
  113.       
  114.     "MAC":
  115.       set the memberNum of sprite 2 to the memberNum of member "Snk EDU"
  116.       
  117.       set the memberNum of sprite 3 to the memberNum of member "Snk FAM"
  118.       set FAMG to 53
  119.       set the memberNum of sprite 4 to the memberNum of member "Snk GAME"
  120.       set GAMEG to 54
  121.       set the memberNum of sprite 5 to the memberNum of member "Snk KIDS"
  122.       set KIDSG to 55
  123.       set the memberNum of sprite 6 to the memberNum of member "Snk PROD" 
  124.       set PRODG to 56
  125.       
  126.       set the memberNum of sprite 52 to the memberNum of member "Snk FAMG"
  127.       set the memberNum of sprite 53 to the memberNum of member "Snk FAMG"
  128.       set the memberNum of sprite 54 to the memberNum of member "Snk GAMEG"
  129.       set the memberNum of sprite 55 to the memberNum of member "Snk KIDSG"
  130.       set the memberNum of sprite 56 to the memberNum of member "Snk PRODG"
  131.       
  132.     "PROD":
  133.       set the memberNum of sprite 2 to the memberNum of member "Snk EDU"
  134.       set EDUG to 52
  135.       set the memberNum of sprite 3 to the memberNum of member "Snk FAM"
  136.       set FAMG to 53
  137.       set the memberNum of sprite 4 to the memberNum of member "Snk GAME"
  138.       set GAMEG to 54
  139.       set the memberNum of sprite 5 to the memberNum of member "Snk KIDS"
  140.       set KIDSG to 55
  141.       set the memberNum of sprite 6 to the memberNum of member "Snk MAC"
  142.       set MACG to 56
  143.       
  144.       set the memberNum of sprite 52 to the memberNum of member "Snk EDUG"
  145.       set the memberNum of sprite 53 to the memberNum of member "Snk FAMG"
  146.       set the memberNum of sprite 54 to the memberNum of member "Snk GAMEG"
  147.       set the memberNum of sprite 55 to the memberNum of member "Snk KIDSG"
  148.       set the memberNum of sprite 56 to the memberNum of member "Snk MACG"
  149.       
  150.       
  151.   end case
  152.   UpdateStage
  153.   puppetsneaks (TRUE)
  154.   
  155.   
  156. end
  157.  
  158.  
  159. --* This handler hides/shows the glow images. eg: glow(5,TRUE) *
  160.  
  161. on glow WHICHSPRITE, TRUEORFALSE
  162.   set the visible of sprite WHICHSPRITE to TRUEORFALSE
  163. end glow
  164.  
  165. --* TURN OF ALL GLOWS ON START
  166. on glowClear
  167.   repeat with i = 50 to 65
  168.     glow(i)
  169.   end repeat
  170. end
  171.  
  172. --* This handler switches the text color for a glow effect. eg.textglow("Hello",1)*
  173.  
  174. on textglow WHICHMEMBER, COLORNUMBER
  175.   set the foreColor of member WHICHMEMBER to COLORNUMBER  
  176. end textglow
  177.  
  178. --* This is for using a HotSpot or Button for closing the window or a overlaid
  179. --* cover up sprite THIS IS AN EXAMPLE NOT A HANDLER
  180.  
  181. --on mouseUp
  182. --  global  enableHotspots
  183. --  doClick()
  184. --  if (the visible of sprite 35) then
  185. --    hideFonts()
  186. --    restoreBI()
  187. --  else
  188. --    close window "BIART"
  189. --    forget window "BIART"
  190. --    tell the stage to enableHotspots()
  191. --  end if
  192. --end mouseUp
  193.  
  194.  
  195.  
  196. --* THIS HANDLER OPEN AND CENTERS A MOVIE IN A WINDOW *
  197.  
  198. on openMIAW MYWINDOW
  199.   set myRect=the rect of window MYWINDOW
  200.   set myStage=the rect of the Stage
  201.   set myWidth=(getAt(myRect,3)-getAt(myRect,1))
  202.   set myHeight=(getAt(myRect,4)-getAt(myRect,2))
  203.   set myLocH=((getAt(myStage,3)+getAt(myStage,1))/2)-(myWidth/2)
  204.   set myLocV=((getAt(myStage,2)+getAt(myStage,4))/2)-(myHeight/2)
  205.   set myNewRect=rect(myLocH,myLocV,(myLocH+myWidth),(myLocV+myHeight))
  206.   set the rect of window MYWINDOW=myNewRect
  207.   set the windowType of window MYWINDOW to 2
  208.   open window MYWINDOW
  209. end openMIAW
  210.  
  211.  
  212. --* THESE HANDLERS TURN ON A GLOW, TURN POINTER A HAND AND PLAYS A SOUND *
  213.  
  214. on doRollover numsprite
  215.   glow(numsprite,TRUE)
  216.   global snfinger,snfingermask
  217.   cursor[snfinger,snfingermask]
  218.   updatestage
  219.   puppetsound 1, "rollsound"
  220.   --  repeat while soundbusy(1)
  221.   --  end repeat
  222. end
  223.  
  224.  
  225. on doRollover2 numsprite
  226.   glow(numsprite,TRUE)
  227.   global snfinger,snfingermask
  228.   cursor[snfinger,snfingermask]
  229.   updatestage
  230.   puppetsound 1, "rollsound2"
  231.   --  repeat while soundbusy(1)
  232.   --  end repeat
  233. end
  234.  
  235. --* THIS HANDLER TURNS THE SPRITE PASSED TO IT TO INVISIBLE AND RESETS THE CURSOR
  236. on doRollout numsprite
  237.   glow(numsprite,FALSE)
  238.   cursor 0
  239. end
  240.  
  241. --* PLAYS A CLICK SOUND
  242.  
  243. on doClick
  244.   puppetsound 1,"clicksound"
  245.   updateStage
  246. end
  247.  
  248.  
  249.  
  250.  
  251.  
  252.